﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using ex.Base;

namespace Ex2
{
    class Enemy : AnimatedObject2D
    {
        Player target;

        public Enemy(Texture2D t, Vector2 p, Animation[] a)
            : base(t, p, a)
        {

        }

        public override void Draw(SpriteBatch spriteBatch, GameTime gameTime)
        {
            base.Draw(spriteBatch, gameTime);
        }

        public void Move(Vector2 dir, float speed)
        {
            if (speed == 0) return;
            this.Position += dir * speed;
        }
    }
}
